#include <stdio.h>

int n = 6;
int m = 7;
int main(void){
	int a[n][6][m];
	int (*p)[4][n+1];
	int c[n][n][6][m];
	int (*r)[n][n][n+1];
	// p = a; // 4 != 6
	r = &c[0];

	c[0][2][4][5] = 32;
	c[1][3][4][5] = 24;
	c[2][2][2][5] = 17;
	c[3][2][2][4] = 99;
	
	printf("c[0][2][4][5] == %d\n", c[0][2][4][5]);
	//printf("(*r + 6*0)[2][4][5] == %d\n", (*r + 6*0)[2][4][5]);
	printf("c[1][3][4][5] == %d\n", c[1][3][4][5]);
	//printf("(*r + 6*1)[3][4][5] == %d\n", (*r + 6*1)[3][4][5]);
	//printf("(*r + 6*2)[2][2][5] == %d\n", (*r + 6*2)[2][2][5]);
	//printf("(*r + 6*2)[2][2][4] == %d\n", (*r + 6*3)[2][2][4]);
	
	return 0;
}
